@echo off
echo RM13 Statement to Automation Converter
echo by scouser09

for /f "tokens=1,2,3,4,5,6,7,8 delims=,()" %%a in (statements.txt) do (

if %%a==assignAdboard (
copy adboard\adboard_%%c_0.rx3 adboard\specificadboard_%%b_0_0_0.rx3
)
if %%a==assignTeamAdboard (
copy adboard\adboard_%%c_0.rx3 adboard\specificadboard_%%b_0_0_0.rx3
)
if %%a==assignStadiumAdboard (
copy adboard\adboard_%%c_0.rx3 adboard\specificadboard_0_0_%%b_0.rx3
)
if %%a==assignTournamentAdboard (
copy adboard\adboard_%%c_0.rx3 adboard\specificadboard_0_%%b_0_0.rx3
)
if %%a==assignTournamentTeamAdboard (
copy adboard\adboard_%%d_0.rx3 adboard\specificadboard_%%b_%%c_0_0.rx3
)
if %%a==assignTournamentStadiumAdboard (
copy adboard\adboard_%%d_0.rx3 adboard\specificadboard_0_%%c_%%b_0.rx3
)
if %%a==assignGenericTournamentAdboard (
copy adboard\adboard_%%c_0.rx3 adboard\specificadboard_0_0_0_%%b.rx3
)



if %%a==assignPlayerSkinTone (
copy body\skin_%%c_textures.rx3 body\playerskin_%%b_textures.rx3
)



if %%a==assignGKGlove (
copy gkglove\gkglove_%%C_0_textures.rx3 gkglove\playergkglove_%%b_0_textures.rx3
)





if %%a==assignTeamBall (
copy ball\ball_%%c.rx3 ball\specificball_%%b_0_0.rx3
copy ball\ball_%%c_textures.rx3 ball\specificball_%%b_0_0_textures.rx3
)
if %%a==assignTeamBallSnow (
copy ball\ball_%%c.rx3 ball\specificball_%%b_0_2.rx3
copy ball\ball_%%c_textures.rx3 ball\specificball_%%b_0_2_textures.rx3
)
if %%a==assignTeamBallWinter (
copy ball\ball_%%c.rx3 ball\specificball_%%b_0_1.rx3
copy ball\ball_%%c_textures.rx3 ball\specificball_%%b_0_1_textures.rx3
)
if %%a==assignTournamentBall (
copy ball\ball_%%c.rx3 ball\specificball_0_%%b_0.rx3
copy ball\ball_%%c_textures.rx3 ball\specificball_0_%%b_0_textures.rx3
)
if %%a==assignTournamentBallSnow (
copy ball\ball_%%c.rx3 ball\specificball_0_%%b_2.rx3
copy ball\ball_%%c_textures.rx3 ball\specificball_0_%%b_2_textures.rx3
)
if %%a==assignTournamentBallWinter (
copy ball\ball_%%c.rx3 ball\specificball_0_%%b_1.rx3
copy ball\ball_%%c_textures.rx3 ball\specificball_0_%%b_1_textures.rx3
)









if %%a==assignTournamentPlayerKits (
if not %%e==-1 (
copy kitnumbers\kitnumbers_%%e_1.rx3 kitnumbers\specifickitnumbers_%%b_%%c_1.rx3
copy kitnumbers\kitnumbers_%%e_2.rx3 kitnumbers\specifickitnumbers_%%b_%%c_2.rx3
copy kitnumbers\kitnumbers_%%e_3.rx3 kitnumbers\specifickitnumbers_%%b_%%c_3.rx3
copy kitnumbers\kitnumbers_%%e_4.rx3 kitnumbers\specifickitnumbers_%%b_%%c_4.rx3
copy kitnumbers\kitnumbers_%%e_5.rx3 kitnumbers\specifickitnumbers_%%b_%%c_5.rx3
copy kitnumbers\kitnumbers_%%e_6.rx3 kitnumbers\specifickitnumbers_%%b_%%c_6.rx3
copy kitnumbers\kitnumbers_%%e_7.rx3 kitnumbers\specifickitnumbers_%%b_%%c_7.rx3
copy kitnumbers\kitnumbers_%%e_8.rx3 kitnumbers\specifickitnumbers_%%b_%%c_8.rx3
copy kitnumbers\kitnumbers_%%e_9.rx3 kitnumbers\specifickitnumbers_%%b_%%c_9.rx3
copy kitnumbers\kitnumbers_%%e_10.rx3 kitnumbers\specifickitnumbers_%%b_%%c_10.rx3
copy kitnumbers\kitnumbers_%%e_11.rx3 kitnumbers\specifickitnumbers_%%b_%%c_11.rx3
copy kitnumbers\kitnumbers_%%e_12.rx3 kitnumbers\specifickitnumbers_%%b_%%c_12.rx3
copy kitnumbers\kitnumbers_%%e_13.rx3 kitnumbers\specifickitnumbers_%%b_%%c_13.rx3
copy kitnumbers\kitnumbers_%%e_14.rx3 kitnumbers\specifickitnumbers_%%b_%%c_14.rx3
copy kitnumbers\kitnumbers_%%e_15.rx3 kitnumbers\specifickitnumbers_%%b_%%c_15.rx3
copy kitnumbers\kitnumbers_%%e_16.rx3 kitnumbers\specifickitnumbers_%%b_%%c_16.rx3
copy kitnumbers\kitnumbers_%%e_17.rx3 kitnumbers\specifickitnumbers_%%b_%%c_17.rx3
copy kitnumbers\kitnumbers_%%e_18.rx3 kitnumbers\specifickitnumbers_%%b_%%c_18.rx3
copy kitnumbers\kitnumbers_%%e_19.rx3 kitnumbers\specifickitnumbers_%%b_%%c_19.rx3
copy kitnumbers\kitnumbers_%%e_20.rx3 kitnumbers\specifickitnumbers_%%b_%%c_20.rx3
)
if not %%f==-1 (
copy jerseyfonts\font_%%f.ttf jerseyfonts\specificfont_%%b_%%c.ttf
)
)


if %%a==assignKitDetails (
if not %%g==-1 (
copy kitnumbers\kitnumbers_%%g_1.rx3 kitnumbers\specifickitnumbers_%%b_0_1.rx3
copy kitnumbers\kitnumbers_%%g_2.rx3 kitnumbers\specifickitnumbers_%%b_0_2.rx3
copy kitnumbers\kitnumbers_%%g_3.rx3 kitnumbers\specifickitnumbers_%%b_0_3.rx3
copy kitnumbers\kitnumbers_%%g_4.rx3 kitnumbers\specifickitnumbers_%%b_0_4.rx3
copy kitnumbers\kitnumbers_%%g_5.rx3 kitnumbers\specifickitnumbers_%%b_0_5.rx3
copy kitnumbers\kitnumbers_%%g_6.rx3 kitnumbers\specifickitnumbers_%%b_0_6.rx3
copy kitnumbers\kitnumbers_%%g_7.rx3 kitnumbers\specifickitnumbers_%%b_0_7.rx3
copy kitnumbers\kitnumbers_%%g_8.rx3 kitnumbers\specifickitnumbers_%%b_0_8.rx3
copy kitnumbers\kitnumbers_%%g_9.rx3 kitnumbers\specifickitnumbers_%%b_0_9.rx3
copy kitnumbers\kitnumbers_%%g_10.rx3 kitnumbers\specifickitnumbers_%%b_0_10.rx3
copy kitnumbers\kitnumbers_%%g_11.rx3 kitnumbers\specifickitnumbers_%%b_0_11.rx3
copy kitnumbers\kitnumbers_%%g_12.rx3 kitnumbers\specifickitnumbers_%%b_0_12.rx3
copy kitnumbers\kitnumbers_%%g_13.rx3 kitnumbers\specifickitnumbers_%%b_0_13.rx3
copy kitnumbers\kitnumbers_%%g_14.rx3 kitnumbers\specifickitnumbers_%%b_0_14.rx3
copy kitnumbers\kitnumbers_%%g_15.rx3 kitnumbers\specifickitnumbers_%%b_0_15.rx3
copy kitnumbers\kitnumbers_%%g_16.rx3 kitnumbers\specifickitnumbers_%%b_0_16.rx3
copy kitnumbers\kitnumbers_%%g_17.rx3 kitnumbers\specifickitnumbers_%%b_0_17.rx3
copy kitnumbers\kitnumbers_%%g_18.rx3 kitnumbers\specifickitnumbers_%%b_0_18.rx3
copy kitnumbers\kitnumbers_%%g_19.rx3 kitnumbers\specifickitnumbers_%%b_0_19.rx3
copy kitnumbers\kitnumbers_%%g_20.rx3 kitnumbers\specifickitnumbers_%%b_0_20.rx3
)
if not %%d==-1 (
copy jerseyfonts\font_%%d.ttf jerseyfonts\specificfont_%%b_0.ttf
)
)


if %%a==assignTournamentKitNameAndNumbers (
if not %%d==-1 (
copy kitnumbers\kitnumbers_%%d_1.rx3 kitnumbers\specifickitnumbers_0_%%b_1.rx3
copy kitnumbers\kitnumbers_%%d_2.rx3 kitnumbers\specifickitnumbers_0_%%b_2.rx3
copy kitnumbers\kitnumbers_%%d_3.rx3 kitnumbers\specifickitnumbers_0_%%b_3.rx3
copy kitnumbers\kitnumbers_%%d_4.rx3 kitnumbers\specifickitnumbers_0_%%b_4.rx3
copy kitnumbers\kitnumbers_%%d_5.rx3 kitnumbers\specifickitnumbers_0_%%b_5.rx3
copy kitnumbers\kitnumbers_%%d_6.rx3 kitnumbers\specifickitnumbers_0_%%b_6.rx3
copy kitnumbers\kitnumbers_%%d_7.rx3 kitnumbers\specifickitnumbers_0_%%b_7.rx3
copy kitnumbers\kitnumbers_%%d_8.rx3 kitnumbers\specifickitnumbers_0_%%b_8.rx3
copy kitnumbers\kitnumbers_%%d_9.rx3 kitnumbers\specifickitnumbers_0_%%b_9.rx3
copy kitnumbers\kitnumbers_%%d_10.rx3 kitnumbers\specifickitnumbers_0_%%b_10.rx3
copy kitnumbers\kitnumbers_%%d_11.rx3 kitnumbers\specifickitnumbers_0_%%b_11.rx3
copy kitnumbers\kitnumbers_%%d_12.rx3 kitnumbers\specifickitnumbers_0_%%b_12.rx3
copy kitnumbers\kitnumbers_%%d_13.rx3 kitnumbers\specifickitnumbers_0_%%b_13.rx3
copy kitnumbers\kitnumbers_%%d_14.rx3 kitnumbers\specifickitnumbers_0_%%b_14.rx3
copy kitnumbers\kitnumbers_%%d_15.rx3 kitnumbers\specifickitnumbers_0_%%b_15.rx3
copy kitnumbers\kitnumbers_%%d_16.rx3 kitnumbers\specifickitnumbers_0_%%b_16.rx3
copy kitnumbers\kitnumbers_%%d_17.rx3 kitnumbers\specifickitnumbers_0_%%b_17.rx3
copy kitnumbers\kitnumbers_%%d_18.rx3 kitnumbers\specifickitnumbers_0_%%b_18.rx3
copy kitnumbers\kitnumbers_%%d_19.rx3 kitnumbers\specifickitnumbers_0_%%b_19.rx3
copy kitnumbers\kitnumbers_%%d_20.rx3 kitnumbers\specifickitnumbers_0_%%b_20.rx3
)
if not %%c==-1 (
copy jerseyfonts\font_%%c.ttf jerseyfonts\specificfont_0_%%b.ttf
)
)


if %%a==assignTournamentKitDetails (
if not %%h==-1 (
copy kitnumbers\kitnumbers_%%h_1.rx3 kitnumbers\specifickitnumbers_%%b_%%d_1.rx3
copy kitnumbers\kitnumbers_%%h_2.rx3 kitnumbers\specifickitnumbers_%%b_%%d_2.rx3
copy kitnumbers\kitnumbers_%%h_3.rx3 kitnumbers\specifickitnumbers_%%b_%%d_3.rx3
copy kitnumbers\kitnumbers_%%h_4.rx3 kitnumbers\specifickitnumbers_%%b_%%d_4.rx3
copy kitnumbers\kitnumbers_%%h_5.rx3 kitnumbers\specifickitnumbers_%%b_%%d_5.rx3
copy kitnumbers\kitnumbers_%%h_6.rx3 kitnumbers\specifickitnumbers_%%b_%%d_6.rx3
copy kitnumbers\kitnumbers_%%h_7.rx3 kitnumbers\specifickitnumbers_%%b_%%d_7.rx3
copy kitnumbers\kitnumbers_%%h_8.rx3 kitnumbers\specifickitnumbers_%%b_%%d_8.rx3
copy kitnumbers\kitnumbers_%%h_9.rx3 kitnumbers\specifickitnumbers_%%b_%%d_9.rx3
copy kitnumbers\kitnumbers_%%h_10.rx3 kitnumbers\specifickitnumbers_%%b_%%d_10.rx3
copy kitnumbers\kitnumbers_%%h_11.rx3 kitnumbers\specifickitnumbers_%%b_%%d_11.rx3
copy kitnumbers\kitnumbers_%%h_12.rx3 kitnumbers\specifickitnumbers_%%b_%%d_12.rx3
copy kitnumbers\kitnumbers_%%h_13.rx3 kitnumbers\specifickitnumbers_%%b_%%d_13.rx3
copy kitnumbers\kitnumbers_%%h_14.rx3 kitnumbers\specifickitnumbers_%%b_%%d_14.rx3
copy kitnumbers\kitnumbers_%%h_15.rx3 kitnumbers\specifickitnumbers_%%b_%%d_15.rx3
copy kitnumbers\kitnumbers_%%h_16.rx3 kitnumbers\specifickitnumbers_%%b_%%d_16.rx3
copy kitnumbers\kitnumbers_%%h_17.rx3 kitnumbers\specifickitnumbers_%%b_%%d_17.rx3
copy kitnumbers\kitnumbers_%%h_18.rx3 kitnumbers\specifickitnumbers_%%b_%%d_18.rx3
copy kitnumbers\kitnumbers_%%h_19.rx3 kitnumbers\specifickitnumbers_%%b_%%d_19.rx3
copy kitnumbers\kitnumbers_%%h_20.rx3 kitnumbers\specifickitnumbers_%%b_%%d_20.rx3
)
if not %%e==-1 (
copy jerseyfonts\font_%%e.ttf jerseyfonts\specificfont_%%b_0.ttf
)
)


if %%a==assignMowPattern (
copy pitch\pitchmowpattern_%%C_textures.rx3 pitch\specificpitchmowpattern_%%b_0_0_textures.rx3
)


if %%a==assignTournamentMowPattern (
copy pitch\pitchmowpattern_%%C_textures.rx3 pitch\specificpitchmowpattern_0_%%b_0_textures.rx3
)


if %%a==assignWearPattern (
copy pitch\pitchwearpattern_%%C_textures.rx3 pitch\specificpitchwearpattern_%%b_0_textures.rx3
)


if %%a==assignNet (
copy goalnet\netcolor_%%d_textures.rx3 goalnet\specificnetcolor_%%b_0_textures.rx3
)



if %%a==assignTeamStadTex (
copy stadium\stadium_%%b_0_container_%%d.rx3 stadium\specificstadium_%%b_0_container_%%c_0.rx3
copy stadium\stadium_%%b_1_container_%%d.rx3 stadium\specificstadium_%%b_1_container_%%c_0.rx3
copy stadium\stadium_%%b_2_container_%%d.rx3 stadium\specificstadium_%%b_2_container_%%c_0.rx3
copy stadium\stadium_%%b_3_container_%%d.rx3 stadium\specificstadium_%%b_3_container_%%c_0.rx3
copy stadium\stadium_%%b_4_container_%%d.rx3 stadium\specificstadium_%%b_4_container_%%c_0.rx3
)


if %%a==assignTournamentStadTex (
copy stadium\stadium_%%b_0_container_%%d.rx3 stadium\specificstadium_%%b_0_container_0_%%c.rx3
copy stadium\stadium_%%b_1_container_%%d.rx3 stadium\specificstadium_%%b_1_container_0_%%c.rx3
copy stadium\stadium_%%b_2_container_%%d.rx3 stadium\specificstadium_%%b_2_container_0_%%c.rx3
copy stadium\stadium_%%b_3_container_%%d.rx3 stadium\specificstadium_%%b_3_container_0_%%c.rx3
copy stadium\stadium_%%b_4_container_%%d.rx3 stadium\specificstadium_%%b_4_container_0_%%c.rx3
)



)
pause